package com.mt.mtbusinessmanagementsystem.utils;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

@Builder
@Repository
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class IsTrue<T> {
    private Boolean isTrue;
    private String str;
    private T data;
    public IsTrue(Boolean isTrue){
        this.isTrue=isTrue;
    }
    public IsTrue(Boolean isTrue, String str){
        this.isTrue=isTrue;
        this.str=str;
    }
}
